﻿//**************************************************************************//
// Copyright (C) Abdul Rasheed. All rights Reserved.                        //
// rasheedat.blogspot.com                                                   //
//**************************************************************************//
using System;

using System.Collections.Generic;
using System.Text;

namespace PPHR.Common
{
    /// <summary>
    /// Data class to store personal detail
    /// </summary>
    [System.Serializable]
    public class PersonalData
    {
        private string patientID = string.Empty;
        private string name = string.Empty;
        private DateTime dob;
        private string gender = string.Empty;
        private string martialStatus = string.Empty;
        private string SSnumber = string.Empty;
        private string drivingLicenseNumber = string.Empty;
        private string nationality = string.Empty;
        private string alergicTo = string.Empty;
        private string bloodGroup = string.Empty;
        private List<Address> address = new List<Address>();
        private string motherName = string.Empty;
        private string aliasName = string.Empty;
        private string primaryLanguage = string.Empty;
        private List<IDs> otherIDs = new List<IDs>();

        public string PatientID
        {
            get { return patientID; }
            set { patientID = value; }
        }
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public DateTime DOB
        {
            get { return dob; }
            set { dob = value; }
        }
        public string Gender
        {
            get { return gender; }
            set { gender = value; }
        }
        public string MartialStatus
        {
            get { return martialStatus; }
            set { martialStatus = value; }
        }
        public string SSNumber
        {
            get { return SSnumber; }
            set { SSnumber = value; }
        }
        public string DrivingLicenseNumber
        {
            get { return drivingLicenseNumber; }
            set { drivingLicenseNumber = value; }
        }
        public string Nationality
        {
            get { return nationality; }
            set { nationality = value; }
        }
        public string AlergicTo
        {
            get { return alergicTo; }
            set { alergicTo = value; }
        }
        public string BloodGroup
        {
            get { return bloodGroup; }
            set { bloodGroup = value; }
        }
        public List<Address> Addresses
        {
            get { return address; }
            set { address = value; }
        }
        public string MotherName
        {
            get { return motherName; }
            set { motherName = value; }
        }
        public string AliasName
        {
            get { return aliasName; }
            set { aliasName = value; }
        }
        public string PrimaryLanguage
        {
            get { return primaryLanguage; }
            set { primaryLanguage = value; }
        }
        public List<IDs> OtherIDs
        {
            get { return otherIDs; }
            set { otherIDs = value; }
        }
    }

    [System.Serializable]
    public class Address
    {
        private string addressType = string.Empty;
        private string street1 = string.Empty;
        private string street2 = string.Empty;
        private string city = string.Empty;
        private string state = string.Empty;
        private string zip = string.Empty;
        private string country = string.Empty;
        private string fax = string.Empty;
        private string phone = string.Empty;
        
        public string AddressType
        {
            get { return addressType; }
            set { addressType = value; }
        }
        public string Street1
        {
            get { return street1; }
            set { street1 = value; }
        }
        public string Street2
        {
            get { return street2; }
            set { street2 = value; }
        }
        public string City
        {
            get { return city; }
            set { city = value; }
        }
        public string State
        {
            get { return state; }
            set { state = value; }
        }
        public string Zip
        {
            get { return zip; }
            set { zip = value; }
        }
        public string Country
        {
            get { return country; }
            set { country = value; }
        }
        public string Fax
        {
            get { return fax; }
            set { fax = value; }
        }
        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }
    }

    [System.Serializable]
    public class IDs
    {
        private string hospital;
        private string hospitalID;

        public string Hospital
        {
            get { return hospital; }
            set { hospital = value; }
        }
        public string HospitalID
        {
            get { return hospitalID; }
            set { hospitalID = value; }
        }
    }
}
